﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartSiteManagementSystem.Models.DTO
{
    [Serializable]
    public class ResultInfo
    {
        private bool _isSuccess = true;
        public bool IsSuccess
        {
            get { return _isSuccess; }
            set { _isSuccess = value; }
        }

        private int _code;
        public int Code
        {
            get
            {
                return  _code;
            }
            set
            {
                _code = value;
            }
        }
        public string Msg { get; set; }
    }

    [Serializable]
    public class ResultInfo<T> : ResultInfo
    {
        public T Data;
    }
}